package OOday02;
//派类 子类
public class Student extends Person {
    String classname;
    String stuld;
   Student(String name,int age,String address,String classname,String stuld){
       super(name,age,address);
       this.classname=classname;
       this.stuld=stuld;
    }
    void study(){
        System.out.println(name+"正在学习");
    }
    void sayHi(){
        System.out.println("大家好，我叫"+name+"今年，"+age+"家住在"+address+classname+"班里 ");
    }
}
